*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;

}
/*mq-editable-field mq-math-mode*/
.mq-editable-field.mq-math-mode{
    box-shadow: unset !important;
}
.mq-root-block{
    word-break: break-all !important;
    white-space: normal !important;
}
@keyframes ani {
    0%{height: 0}
    100%{height: 282px}
}
.keyboard{
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    position: fixed;
    width: 100vw;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: ani .5s linear forwards;
    .render{
        background: #ffffff;
        border: 1px solid #ccc;
        min-height: 45px;
        outline: none;
        padding: 0 15px;
        color: #4f4f4f;
        display: flex;
        align-items: center;
        .cursor{
            position: relative;
            &:after{
                content: '|';
                position: absolute;
                animation: cursor 1s linear infinite;
            }
            @keyframes cursor {
                0%{opacity: 0}
                50%{opacity: 0}
                100%{opacity: .8}
            }
        }
    }
    .key-list{
        height: calc((45px + 3px) * 4);
    }
    .key-group{
        flex: 1;
        display: flex;
        align-items: center;
        &:last-child{
            >.key-item{
                //margin-bottom: 0;
            }
        }
        &.letter,
        &.symbol{
            display: none;
        }
        >.key-item{
            margin-bottom: 3px;
            margin-right: 3px;
            position: relative;
            display: flex;
            flex: 1;
            align-items: center;
            justify-content: center;
            height: 45px;
            line-height: 45px;
            border-radius: 2px;
            &:active{
                background-color: #aaa
            }
            &:last-child{
                margin-right: 0;
            }
            &.more:after{
                content: "";
                position: absolute;
                top: 0;
                right: 0;
                width: 0;
                height: 0;
                border-top: 8px solid #5AB67E;
                border-left: 8px solid transparent
            }
        }
    }
    .tools-keys{
        .key-item{
            margin-bottom: 0;
        }
    }
}
.sub-list{
    >.key-group{
        background: transparent;
        overflow: hidden;
        display: none;
        position: absolute;
        box-shadow: 0 0 10px rgba(0,0,0,.8);
        >.key-item{
            width: 10.6vw;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 45px;
            background-position: center;
            &:active{
                background-color: #aaa
            }
            &:last-child{
                margin-right: 0;
            }
        }
    }
}
/*自定义*/
.icon-custom:before{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 16px;
    text-align: center;
    color: #80898e;
}
.key-item.weuzhi:before {
    @extend .icon-custom;
    content: "未知";
}
.key-item.tools-sin:before {
    @extend .icon-custom;
    content: "sin";
}
.key-item.tools-αβγ:before {
    @extend .icon-custom;
    content: "αβγ";
}
.key-item.tools-number:before {
    @extend .icon-custom;
    content: "123";
}
.key-item.disable {
    position: relative;
}
.key-item.disable:after{
    content: "";
    background: #DBDCDC;
    top: 0;
    left: 0;
    font-size: 12px;
    color: #252525;
    width: 100%;
    height: 100%;
}
